Repository navigation
Report review-required policy refusals before Self-merge - #708
Merged
Merged
Conversation
Review since 506f9b7 with independent Standards and Spec reviewers. All three changed files read on both axes. Standards: one low-severity Primitive Obsession judgement declined with locality evidence in PR #708. Spec: no findings. No source fixes warranted. Review-only empty commit; reports retained in .thirdshift-review-ClfBLi/. Validation: formatting, Clippy, 23 ending tests, 26 Merge run tests, 31 notification tests and 18 Spec review tests passed.
This was referenced Oct 16, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Review-required refusals exit
1, leave the PR ready with its Claim kept, and skip the merge attempt and Repair round. stderr, Run notifications and the Activity log name the reason.Closes #707
Evidence
REVIEW_REQUIREDstill merged the PR and exited0instead of1.After:
cargo test --test merge_run a_required_review_refuses_the_merge_without_another_round_and_names_the_outcome -- --exactexercises the consolidated regression for both blocking decisions: no merge/Repair, PR stays ready, Claim kept, cleanup completes. Coverage includes another read after Repair, unknown/null decisions, and failed reads with successful merges or other policy refusals.cargo test --test run_notification a_review_required_notification_and_summary_name_the_refusal -- --exactfailed with the subject ending: failed.After: it passes with
review requiredin the notification and Activity log. The Spec PR test also passes for both blocking decisions.cargo check --all-targets,cargo fmt --check, andcargo clippy --all-targets -- -D warningspass.cargo test -- --test-threads=4passes for the full Rust suite.Merge Danger
Door: two-way
Reversible code and documentation change; no migrations.
Blast Radius: Self-merge
Adds one best-effort GitHub read immediately before each merge request. Other policy refusals retain their existing handling.
Test seams
Unaddressed findings
Standards
src/run_ending.rs:94) for this scoped outcome addition. This is an implementation plan decision:Accountalready carries the display outcome;summaryreuses it at lines 279–281, while the policy decision itself remains typed asPolicyRefusal::ReviewRequiredat lines 295–299. Adding a second reporting category or stored summary prefix solely for this label would duplicate that state. The reviewer explicitly identified a maintenance judgment, not incorrect behavior. No Spec or Day shift decision is needed.Spec
None.
Security
None. Single-session guidance review of all 13 changed files and supporting PR identity, guarded merge, interruption, failure cleanup, and notification code against pinned merge base
3574ae7267507e8fd67403538e0a851d8030f1d6found no introduced security findings. Read the relevant attack-class guidance; no repositorySECURITY.mdor threat model was present.Validation: 29 review-focused tests across
merge_run,spec_run, andrun_notificationpassed in a network-isolated sandbox using local stand-ins. No source fixes were needed.Review coverage
Reviewed against
mainwith fresh, independent Standards and Spec reviewers after reconciling the branch. The final pass reported no findings; the initial pass's optional STD-001 remains documented above. Both read all 13 changed files; unread changed files: none. Reports are retained in.thirdshift-review-1tPh0F/standards.mdandspec.mdin the Run worktree.Built with codex · gpt-6.1-sol · high